﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Views
{
    public abstract class Presenter<TView>
    {
        // Fields
        private TView _view;

        // Methods
        protected Presenter()
        {
        }

        public virtual void OnViewInitialized()
        {
        }

        public virtual void OnViewLoaded()
        {
        }

        // Properties
        public TView View
        {
            get
            {
                return this._view;
            }
            set
            {
                this._view = value;
            }
        }
    }

    public abstract class Presenter<TView,TAction>
    {
        // Fields
        private TView _view;
        private TAction _action;

        // Methods
        protected Presenter() {}

        public virtual void OnViewInitialized() { }

        public virtual void OnViewLoaded() {}
        
        public virtual void OnActionLoaded() {}

        // Properties
        public TView View
        {
            get
            {
                
                return this._view;
            }
            set
            {
                this._view = value;
            }
        }

        public TAction Action
        {
            get
            {
                return this._action;
            }
            set
            {
                this._action = value;
            }
        }


    }


}
